package com.xkdx.guangguang.fragment.user;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class UserResetPwdCommitAction extends AbsAction {

	private String phone, newpwd;

	public UserResetPwdCommitAction(String phone, String newpwd) {
		this.phone = phone;
		this.newpwd = newpwd;
	}

	@Override
	public void constructRequest() {

		HashMap<String, String> modifyPwdmap = new HashMap<String, String>();
		modifyPwdmap.put("DeviceID", "2");
		modifyPwdmap.put("UserName", phone);
		modifyPwdmap.put("NewPassword", newpwd);

		String resetPwdJson = constructJson(modifyPwdmap);
		Parameter parameter = new Parameter("userInterface",
				"editUserForgetPasswd", resetPwdJson);
		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
